package com.baite.demo;

import com.baite.demo.Dao.UserCacheDao;
import com.baite.demo.bean.UserCacheObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userService {
  @Autowired
  private UserCacheDao userCacheDao;

  public UserCacheObject get(Integer id) {
    return userCacheDao.get(id);
  }

  public void set(Integer id, UserCacheObject object) {
    userCacheDao.set(id, object);
  }
}
